<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>打地鼠</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        .mouses-box {
            width: 680px;
            height: 490px;
            border: 2px solid #666;
            margin: 50px auto;
            background-color: #72CCAB;
            display: flex;
            flex-direction: column;
            cursor: url('./image/cursor.png'), auto;
        }

        .mouses-box-down {
            cursor: url('./image/cursor-down.png'), auto;
        }


        .mouses-box .toolbar {
            display: flex;
            height: 68px;
            width: 100%;
            align-items: center;
            justify-content: space-between;
            padding: 0 30px;
            color: #fff;
            font-size: 18px;
            border-bottom: 1px solid #666;
            cursor: pointer;
        }

        .tLeft .levels {
            margin-left: 30px;
        }

        .tRight {}

        #mouseFrame {
            display: flex;
            flex-wrap: wrap;
        }

        .mouse {
            width: 20%;
            height: 128px;
            border-right: 1px solid #666;
            border-bottom: 1px solid #666;
            background: url('./image/hole.png') no-repeat center 80px;
            background-size: 50%;
        }

        .mouse:nth-child(5n) {
            border-right: none;
        }

        .start {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            border-bottom: 2px solid #666;
            color: #fff;
            font-size: 18px;
            font-weight: 500;
        }

        .start:last-child {
            border-bottom: none;
        }

        .start:hover {
            cursor: pointer;
        }

        .out {
            width: 20%;
            height: 128px;
            background: url('./image/mouse.png') no-repeat center 40px;
            background-size: 50%;
        }
    </style>
</head>

<body>
    <div class="mouses-box" id="gameBox">
        <div class="toolbar">
            <div class="tLeft">
                <span id="time">60</span>秒
                <span class="levels">
                    难易程度
                    <select name="" id="level" onchange="selectChange(this.value)">
                        <option value="2000" selected='selected'>容易</option>
                        <option value="500">适中</option>
                        <option value="200">困难</option>
                    </select>
                </span>
            </div>
            <div class="tRight">
                打中<span id="hitNum">0</span>个
            </div>
        </div>
        <div id="mouseFrame" class="clearfix">
            <span class="mouse"></span>
            <span class="mouse"></span>
            <span class="mouse"></span>
            <span class="mouse"></span>
            <span class="mouse"></span>
            <span class="mouse"></span>
            <span class="mouse"></span>
            <span class="mouse"></span>
            <span class="mouse"></span>
            <span class="mouse"></span>
        </div>
        <div class="start" onclick="gameOver()">结束游戏</div>
        <div class="start" onclick="start()">开始游戏</div>
    </div>
    <script src="./mouse.js"></script>
</body>

</html>